#!/bin/sh

PSPSDK=$(psp-config --pspsdk-path)
if [ -z "$PSPSDK" ]; then
    echo
    echo "ERROR: Env variable PSPSDK not set."
    echo
    exit 1
fi

echo
echo "---------------"
echo "Logger installer"
echo "---------------"
echo "Creating directories...."
mkdir -p $PSPSDK/include/Logger
echo "Copying lib...."
cp -f  liblogger.a $PSPSDK/lib/

echo "Copying header files...."
cp -f loggerc.h $PSPSDK/include/Logger/

echo "Done!"
echo
